package com.keymozy.service;

import com.keymozy.pojo.Borrow;
import com.keymozy.pojo.MChild;
import com.keymozy.pojo.Model;
import com.keymozy.pojo.dto.DtoDept;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface MChildService {
    Map<String,Object> getList(int currentPage, int pageSize, Integer state, Model model);
    boolean borrow(Integer mid,Integer sid);
    List<Borrow> getBorrow(Integer sid);
    boolean toReturn(Borrow borrow);
    boolean setState(Integer mid,Integer flag);
    List<Model> getMaintain(Long time);
    List<DtoDept> statistics();
}
